package edu.uit.se.laps.web.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "donhang")
public class DonHang implements Serializable{

	/**
	 * Properties 
	 */
	private static final long serialVersionUID = -1527982314018430829L;
	
	private int idDH;
	private int idUser;
	private Date ngayDatHang;
	private Date ngayGiaoHang;
	private String tenNguoiNhan;
	private String diaDiemGiaoHang;
	private String tinhTrang;
	private float tongTien;
	private String ghiChu;
	
	/**
	 * Set/Get properties
	 */
	@Id
	@GeneratedValue
	@Column(name = "idDH")
	public int getIdDH() {
		return idDH;
	}
	@Column(name = "idUser")
	public int getIdUser() {
		return idUser;
	}
	@Column(name = "NgayDatHang")
	public Date getNgayDatHang() {
		return ngayDatHang;
	}
	@Column(name = "NgayGiaoHang")
	public Date getNgayGiaoHang() {
		return ngayGiaoHang;
	}
	@Column(name = "TenNguoiNhan")
	public String getTenNguoiNhan() {
		return tenNguoiNhan;
	}
	@Column(name = "DiaDiemGiaoHang")
	public String getDiaDiemGiaoHang() {
		return diaDiemGiaoHang;
	}
	@Column(name = "TinhTrang")
	public String getTinhTrang() {
		return tinhTrang;
	}
	@Column(name = "TongTien")
	public float getTongTien() {
		return tongTien;
	}
	@Column(name = "GhiChu")
	public String getGhiChu() {
		return ghiChu;
	}
	
	
	public void setIdDH(int idDH) {
		this.idDH = idDH;
	}
	public void setIdUser(int idUser) {
		this.idUser = idUser;
	}
	public void setNgayDatHang(Date ngayDatHang) {
		this.ngayDatHang = ngayDatHang;
	}
	public void setNgayGiaoHang(Date ngayGiaoHang) {
		this.ngayGiaoHang = ngayGiaoHang;
	}
	public void setTenNguoiNhan(String tenNguoiNhan) {
		this.tenNguoiNhan = tenNguoiNhan;
	}
	public void setDiaDiemGiaoHang(String diaDiemGiaoHang) {
		this.diaDiemGiaoHang = diaDiemGiaoHang;
	}
	public void setTinhTrang(String tinhTrang) {
		this.tinhTrang = tinhTrang;
	}
	public void setTongTien(float tongTien) {
		this.tongTien = tongTien;
	}
	public void setGhiChu(String ghiChu) {
		this.ghiChu = ghiChu;
	}

	
}
